package com.portal.incurridos.persistence.wall;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * @author Alan D�vila
 * e-mail ustargab@gmail.com
 * date 12/11/2013 00:09:45
 */
@Entity
@Table(schema = "app", name = "commitment")
@SequenceGenerator(sequenceName = "app.commitment_commitment_seq", allocationSize = 1, name = "id_gen")
public class Commitment {

	/**
	 * Identifier of due date.
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "id_gen")
	private Long commitment;
	/**
	 * Identifier of card.
	 */
	@Id
	private Long card;
	/**
	 * Due date of card.
	 */
	private Date duedate;
	/**
	 * Associated enviroment to due date and card.
	 */
	private String enviroment;
	/**
	 * @return the commitment
	 */
	public final Long getCommitment() {
		return commitment;
	}
	/**
	 * @param commitmentIn the commitment to set
	 */
	public final void setCommitment(final Long commitmentIn) {
		this.commitment = commitmentIn;
	}
	/**
	 * @return the card
	 */
	public final Long getCard() {
		return card;
	}
	/**
	 * @param cardIn the card to set
	 */
	public final void setCard(final Long cardIn) {
		this.card = cardIn;
	}
	/**
	 * @return the duedate
	 */
	public final Date getDueDate() {
		return duedate;
	}
	/**
	 * @param dueDateIn the duedate to set
	 */
	public final void setDueDate(final Date dueDateIn) {
		this.duedate = dueDateIn;
	}
	/**
	 * @return the enviroment
	 */
	public final String getEnviroment() {
		return enviroment;
	}
	/**
	 * @param enviromentIn the enviroment to set
	 */
	public final void setEnviroment(final String enviromentIn) {
		this.enviroment = enviromentIn;
	}

}
